package com.tech.tool.sqlProvider;

import com.tech.tool.dataobject.ApiInfo;

public class ApiInfoSqlProvider {

    public String insertApiInfo(ApiInfo apiInfo) {
        return "insert into api_info (app_id, api_name, api_description, api_method, api_request, api_required, " +
                "api_response, api_status, api_import, api_delete, user_id) values " +
                "(#{appId, jdbcType=INTEGER}, #{apiName, jdbcType=VARCHAR}, #{apiDescription, jdbcType=VARCHAR}, " +
                "#{apiMethod, jdbcType=INTEGER}, #{apiRequest, jdbcType=VARCHAR}, #{apiRequired, jdbcType=VARCHAR}, " +
                "#{apiResponse, jdbcType=VARCHAR}, #{apiStatus, jdbcType=INTEGER}, #{apiImport, jdbcType=INTEGER}, " +
                "#{apiDelete, jdbcType=INTEGER}, #{userId, jdbcType=INTEGER});";
    }
}
